//
//  UserLoginView.m
//  豆瓣(阿黄)
//
//  Created by dllo on 15/11/2.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "UserLoginView.h"

@implementation UserLoginView

-(instancetype)initWithFrame:(CGRect)frame{

    [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}
-(void)createView{

    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 120, 70, 40)];
    [self addSubview:self.nameLabel];
    self.nameLabel.text = @"用户名:";
    self.nameLabel.font = [UIFont systemFontOfSize:20];
    [self.nameLabel release];
    
    self.passLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 180, 70, 40)];
    [self addSubview:self.passLabel];
    self.passLabel.text = @"密码:";
    self.passLabel.font = [UIFont systemFontOfSize:20];
    [self.passLabel release];
    
    self.nameText = [[UITextField alloc] initWithFrame:CGRectMake(120, 120, 230, 40)];
    [self addSubview:self.nameText];
    self.nameText.placeholder = @"请输入用户名";
    self.nameText.borderStyle = UITextBorderStyleRoundedRect;
    [self.nameText release];
    
    self.passText = [[UITextField alloc] initWithFrame:CGRectMake(120, 180, 230, 40)];
    [self addSubview:self.passText];
    self.passText.placeholder = @"请输入密码";
    self.passText.borderStyle = UITextBorderStyleRoundedRect;
    [self.passText release];
}

@end
